
 
 F u n c t i o n :   a d d I d R e f e r e n c e ( d o m E l e m e n t O r C S S S e l e c t o r ,   s t r i n g A t t r i b u t e N a m e ,   s t r i n g I D ) 
 
 
 
 S h o r t h a n d :   a d d I d R e f ( d o m E l e m e n t O r C S S S e l e c t o r ,   s t r i n g A t t r i b u t e N a m e ,   s t r i n g I D ) 
 
 
 
 D e s c r i p t i o n :   A d d s   o n e   o r   m o r e   s p a c e   d e l i m i t e d   I D   r e f e r e n c e s   t o   t h e   s p e c i f i e d   a t t r i b u t e   o n   a n   e l e m e n t . 
 
 
 
 R e t u r n s :   d o m E l e m e n t ,   o r   $ A   o b j e c t   i f   c h a i n e d . 
 
 
 
 N o t e :   A u t o m a t i c a l l y   r e c o g n i z e s   w h e n   p r e v i o u s   I D   r e f e r e n c e s   h a v e   b e e n   s e t   o n   t h e   s a m e   e l e m e n t   a n d   a p p e n d s   t h e m   a c c o r d i n g l y ,   o r   i g n o r e s   t h e m   i f   t h e   s a m e   I D   r e f e r e n c e s   h a v e   a l r e a d y   b e e n   s e t .   D e s i g n e d   f o r   u s e   w i t h   s p e c i f i c   A R I A   a t t r i b u t e s   s u c h   a s   a r i a - d e s c r i b e d b y ,   a r i a - l a b e l l e d b y ,   a r i a - o w n s ,   a n d   a r i a - c o n t r o l s . 
 
 
 
 E x a m p l e : 
 
 
 
 v a r   m y E l e m e n t   =   $ A . a d d I d R e f e r e n c e ( g r i d C e l l N o d e ,   " a r i a - d e s c r i b e d b y " ,   " t a b l e C o l I d   t a b l e R o w I d " ) ; 
 
 
 
 / /   O r   t h e   s a m e   u s i n g   c h a i n i n g 
 
 
 
 v a r   m y C h a i n   =   $ A ( g r i d C e l l N o d e ) . a d d I d R e f e r e n c e ( " a r i a - d e s c r i b e d b y " ,   " t a b l e C o l I d   t a b l e R o w I d " ) ; 
 
 
 
 / /   T o   r e t u r n   t h e   m o d i f i e d   o b j e c t   w i t h i n   a   c h a i n ,   u s e   t h e   " r e t u r n ( ) "   m e t h o d . 
 
 
 
 v a r   m y O b j e c t   =   m y C h a i n . r e t u r n ( ) ; 
 
 